
const Sibling1 = (props) => {
    const sendMessage = () => {
        props.onSendMessage('Message from Sibling 1!');
    };

    return (
        <div>
            <h2>Sibling Component 1</h2>

            <button onClick={sendMessage}>Send Message</button>

        </div>

    );
};

export default Sibling1;